<div class="row-fluid">
    <!-- Sidebar -->
    <div class="span3 ">
        <div class="well" style="max-width: 340px; padding: 10px 0;">
            <ul class="nav nav-list ">
                <li class ="nav-header">MENU</li>
                <li class="
                <?php
                if ($this->uri->segment(2) == 'bimbingan' || $this->uri->segment(2) == 'saran' || $this->uri->segment(2) == 'submit') {
                    echo 'active';
                }
                ?>">
                        <?php echo anchor('mahasiswa/bimbingan', '<i class="icon-chevron-right"></i> Pengajuan Judul Tesis') ?>
                </li>
                <?php
                if ($profil == NULL) {
                    
                } elseif ($profil->status == 'Approved') {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'tesis') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/tesis', '<i class="icon-chevron-right"></i> Profil Tesis');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved') {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'surat' || $this->uri->segment(2) == 'surat_ijin') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/surat', '<i class="icon-chevron-right"></i> Surat Studi Pendahuluan');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved') {
                    echo '<li class ="nav-header">bimbingan</li><li ';
                    if ($this->uri->segment(2) == 'bimbingan_proposal') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/bimbingan_proposal', '<i class="icon-chevron-right"></i> Bimbingan Proposal');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved' && $bimpro == TRUE) {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'bimbingan_tesis') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/bimbingan_tesis', '<i class="icon-chevron-right"></i> Bimbingan Tesis');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved') {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'history') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/history', '<i class="icon-chevron-right"></i> History Bimbingan');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved' && $bimpro == TRUE) {
                    echo '<li class ="nav-header">jadwal</li><li ';
                    if ($this->uri->segment(2) == 'seminar_proposal') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/seminar_proposal', '<i class="icon-chevron-right"></i> Jadwal Seminar Proposal');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved' && $bimtes == TRUE) {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'seminar_tesis') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/seminar_tesis', '<i class="icon-chevron-right"></i> Jadwal Seminar');
                    echo '</li>';
                }
                ?>
                <?php
                if ($menu == TRUE && $profil->status == 'Approved' && $bimtes == TRUE) {
                    echo '<li ';
                    if ($this->uri->segment(2) == 'seminar_hasil') {
                        echo 'class="active"';
                    }
                    echo '>';
                    echo anchor('mahasiswa/seminar_hasil', '<i class="icon-chevron-right"></i> Jadwal Seminar Hasil');
                    echo '</li>';
                }
                ?>
            </ul>
        </div>
    </div>